<include file="Base/header" />
<div class="page-container">
    <include file="Base/menu" />
    <div class="page-content">
        <div class="container-fluid">
            <div class="row-fluid">
                    <div class="span12">
                        <!-- BEGIN PAGE TITLE & BREADCRUMB-->
                        <h3 class="page-title">
                        </h3>
                        <ul class="breadcrumb">
                            <li>
                                <i class="icon-home"></i>
                                <a href="/index.php/Admin/">首页</a>
                                <i class="icon-angle-right"></i>
                            </li>
                            <li><a href="/index.php/Admin/Company">会员管理</a></li>
                        </ul>
                        <!-- END PAGE TITLE & BREADCRUMB-->
                    </div>
            </div>
            <div class="row-fluid">
                    <div class="span12">
                        <!-- BEGIN EXAMPLE TABLE PORTLET-->
                        <div class="portlet box blue">
                            <div class="portlet-title">
                                <div class="caption"><i class="icon-globe"></i>用户举报列表</div>
                                <div class="tools">
                                    <a href="javascript:;" class="collapse"></a>
                                    <a href="javascript:;" class="reload"></a>
                                    <a href="javascript:;" class="remove"></a>
                                </div>
                            </div>
                            <div class="portlet-body">
                                <!-- <div class="clearfix">
                                    <div class="btn-group">
                                        <a href="__CONTROLLER__/Add"><button id="sample_editable_1_new" class="btn green">
                                        新增会员&nbsp;&nbsp;<i class="icon-plus"></i>
                                        </button></a>
                                    </div>
                                </div> -->
                                <div id="sample_1_wrapper" class="dataTables_wrapper form-inline" role="grid">
                                    
                                    <div class="row-fluid">
                                    <form method="get" action="__URL__/tip" >
                                        <div class="span4">
                                            <div id="sample_1_length" class="dataTables_length">
                                                <select size="1" id="mySelect" name="page_size" aria-controls="sample_1" class="m-wrap small" onchange="submit(this.value)">
                                                    <option id="page10" value="10">10</option>
                                                    <option id="page20" value="20">20</option>
                                                    <option id="page50" value="50">50</option>
                                                    <option id="page100" value="100">100</option>
                                                </select> 条/每页</label>
                                            </div>
                                        </div>
                                        <!-- <div class="span6">
                                            <div class="dataTables_filter" id="sample_1_filter">
                                                <label><input placeholder="输入要搜索的用户名称" value="{$search}" name="payname" type="text" aria-controls="sample_1" class="m-wrap medium">&nbsp;<input type="submit" aria-controls="sample_1" class="btn blue" value="搜索"></label>
                                            </div>
                                        </div> -->
                                    </form>
                                    </div>
<table class="table table-striped table-bordered table-hover dataTable"
id="sample_1" aria-describedby="sample_1_info">
    <thead>
        <tr role="row">
            <!-- <th style="width: 24px;" class="sorting_disabled" role="columnheader"
            rowspan="1" colspan="1" aria-label="">
                <div class="checker">
                    <span>
                        <input type="checkbox" class="group-checkable" data-set="#sample_1 .checkboxes">
                    </span>
                </div>
            </th> -->
            <th class="sorting" role="columnheader" tabindex="0" aria-controls="sample_1"
            rowspan="1" colspan="1" aria-label="" style="width: 10px;">
                ID
            </th>
            <th class="hidden-480 sorting_disabled" role="columnheader" rowspan="1"
            colspan="1" aria-label="Email" style="width: 20px;">
                举报人id
            </th>
            <th style="width: 25px;">
                被举报人id
            </th>
            <th class="hidden-480 sorting" role="columnheader" tabindex="0" aria-controls="sample_1"
            rowspan="1" colspan="1" aria-label="" style="width: 20px;">
                举报时间
            </th>
            <th class="hidden-480 sorting" role="columnheader" tabindex="0" aria-controls="sample_1"
            rowspan="1" colspan="1" aria-label="" style="width: 40px;">
                举报类型
            </th>
            <th class="hidden-480 sorting_disabled" role="columnheader" rowspan="1"
            colspan="1" aria-label="Email" style="width: 150px;">
                图片
            </th>
            <th class="hidden-480 sorting_disabled" role="columnheader" rowspan="1"
            colspan="1" aria-label="Joined" style="width: 150px;">
                举报内容
             </th>

        </tr>
    </thead>

    <foreach name="data" item="vo">

    <tbody role="alert" aria-live="polite" aria-relevant="all">
     <tr class="gradeX odd">
            <!-- <td class=" sorting_1">
                <div class="checker">
                    <span>
                        <input type="checkbox" class="checkboxes" value="1">
                    </span>
                </div>
            </td> -->
            <td class=" ">
                {$vo.id}
            </td>
            <td class="hidden-480 ">
                <a href="__CONTROLLER__/updata?id={$vo.user_id}">
                   {$vo.user_id}
                </a>
            </td>
            <td class="hidden-480 ">
                <a href="__CONTROLLER__/updata?id={$vo.tip_user_id}">
                    {$vo.tip_user_id}
                </a>
            </td>
            <td class="hidden-480 ">
                 {$vo.add_time|date="Y-m-d",###}

            </td>
            <td class="center hidden-480 ">
                {$vo.type}
            </td>
            <td class="hidden-480 ">
                <foreach name="vo['image']" item="v">
                <div name="layer-photos-demo" class="layer-photos-demo" style="height: 30px;width:20px;float:left;">
                    <img layer-pid="{$v}" layer-src="__ROOT__{$v}" src="__ROOT__{$v}">
                </div>
                </foreach>
            </td>
            <td class="center hidden-480 ">
                {$vo.content}
            </td>
        </tr>
    </tbody>


    </foreach>
</table>
<div class="row-fluid">

    <div class="span6">
        <div class="dataTables_info" id="sample_1_info">
          共{$count}条数据记录。
        </div>
    </div>
    <div class="span6">
        <div class="dataTables_paginate paging_bootstrap pagination">
            {$page}
        </div>
    </div>
</div>
                                </div>
                            </div>
                        </div>
                        <!-- END EXAMPLE TABLE PORTLET-->
                    </div>
                </div>
        </div>
    </div>
</div>
<include file="Base/footer" />
<script src="__PUBLIC__/js/layer/layer.js"></script>
<script type="text/javascript">

    layer.photos({
        photos: '.layer-photos-demo'
        ,anim: 5 //0-6的选择，指定弹出图片动画类型，默认随机（请注意，3.0之前的版本用shift参数）
    });
    
function del(id){
    layer.alert('确定删除？',function(close){
        pullRequest(id);
        layer.close(close);
    })
    function pullRequest(id){
        self.location="__MODULE__/Slide/delete?id="+id;
    }
}
</script>
<script language="javascript" type="text/javascript">
function submit(){
    $.ajax({
        type:"get",
        url:"index?page_size",
        async:false,
    })
}
element=document.getElementById('page'+{$Think.session.page_size});
element.setAttribute("selected","selected");
</script>